home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000413_news@newsmaster….columbia.edu _Fri Sep 26 14:11:28 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA23733
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 26 Sep 1997 14:11:28 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA11895
  7.     for kermit.misc@watsun; Fri, 26 Sep 1997 14:11:27 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!207.178.62.6!news.wolfe.net!not-for-mail
  9. From: "Baus" <baus@wolfenet.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: K95 question
  12. Date: 26 Sep 1997 18:04:01 GMT
  13. Organization: Baus & Associates
  14. Lines: 29
  15. Message-ID: <01bccaa7$18a5cec0$733bb2cf@baus>
  16. NNTP-Posting-Host: sea-ts4-p65.wolfenet.com
  17. X-Newsreader: Microsoft Internet News 4.70.1161
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7738
  19.  
  20. When using K95, can you call it from Visual Basic in server mode such that
  21. the program code after the K95 server call does not continue until after
  22. K95 is no longer in server mode?  Windows multitasking is messing me up.
  23.  
  24. >From my DOS code using Kermit 3.12 or 2.32 I can create a loop that calls
  25. Kermit in server mode and no further processing happens until after the
  26. sending PC sends the finish command or a user at the PC does the Ctrl-C.  I
  27. then check to see if there was keyboard input and if so then the user at
  28. the PC wants to exit the program and I quit, if not then I check for and
  29. then process the files sent.
  30.  
  31. For example psuedo code would look something like:
  32.  
  33. Do while true
  34.     Kermit server    'Wait for data.dat file
  35.     IF CheckForKeyboardInput() Then
  36.         Exit Do
  37.     EndIf
  38.     If FileExists(data.dat)
  39.         ProcessData(data.dat)
  40.         Delete Data.dat
  41.     EndIf
  42. Loop
  43.  
  44.  
  45. Thanks for any guidance,
  46. Steve
  47.  
  48.